//
//  BLComment.m
//  百思不得姐
//
//  Created by hbl on 16/3/29.
//  Copyright © 2016年 hbl. All rights reserved.
//

#import "BLComment.h"

@implementation BLComment

- (CGFloat)cellHight
{
    if (!_cellHight) {
        NSString *contentText = self.content;
        NSDictionary *attr = @{NSFontAttributeName:[UIFont systemFontOfSize:17.0]};
      CGRect textRect = [contentText boundingRectWithSize:CGSizeMake(mainW - 110, CGFLOAT_MAX) options:NSStringDrawingUsesLineFragmentOrigin attributes:attr context:nil];
        _cellHight = 40 + textRect.size.height + 10;
    }
    return _cellHight;
}

@end
